<?php
/**
 * this Dig_Application_Resource_Cache application resource
 * manages the cache
 *
 */
class Dig_Application_Resource_Autoloader extends Zend_Application_Resource_ResourceAbstract
{
    public function init ()
    {
        // Add autoloader empty namespace
        $autoLoader = Zend_Loader_Autoloader::getInstance();
        $autoLoader->registerNamespace('Dig_');
        $resourceLoader = new Zend_Loader_Autoloader_Resource(array('basePath' => APPLICATION_PATH , 'namespace' => '' , 'resourceTypes' => array('form' => array('path' => 'forms/' , 'namespace' => 'Form_') , 'model' => array('path' => 'models/' , 'namespace' => 'Model_') , 'api' => array('path' => 'apis/' , 'namespace' => 'Api_'))));
        // Return it, so that it can be stored by the bootstrap
        return $autoLoader;
    }
}
?>